package com.itheima.mapper;

import com.itheima.domain.Student;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface StudentMapper {

    @Select("select * from students")
    List<Student> findAll();

    @Update("update students set ")
    void update(Student student);

    Student findById(int id);

    void save(Student student);

    void delete(int id);
}
